﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.RAL.ORM;

namespace Empires.BLL.AppEngine.IService
{
    public interface IUserService
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <param name="isremember"></param>
        /// <returns></returns>
        bool UserLogin(string username, string password, bool isremember);
        /// <summary>
        /// 检查用户是否存在 存在返回1，否则返回0
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        int ExistUserName(string username);
        /// <summary>
        /// 新用户注册
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <param name="nickname"></param>
        /// <param name="sex"></param>
        /// <param name="birthday"></param>
        /// <param name="contact"></param>
        /// <param name="appellaction"></param>
        /// <param name="adress"></param>
        /// <returns></returns>
        int NewUserRegister(string username, string password, string nickname, bool sex, string birthday, string contact, string appellaction, string address);
        /// <summary>
        /// 获得用户身份0：普通用户，1：合作管理者（特约模板提供商），2：网站管理员，3，系统管理员，4：超级管理员
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        int GetUserStatus(string username);
        /// <summary>
        /// 获得指定用户的站点名(title)
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        string GetUserWebSiteName(string username);
        /// <summary>
        /// 获取昵称
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        string GetUserNickname(string username);
    }
}
